package com.qwc.blog.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author qiuwencong
 * @Date 2022/1/24 16:07
 * @Package com.qwc.blog.config
 * @Description
 */
@Component
@Data
@ConfigurationProperties(prefix = "qwc.config")
public class InitProperties {

    private Login login = new Login();

    private Token token = new Token();

    private Information information = new Information();

    @Data
    class Login {
        private String username;
        private String password;
    }

    @Data
    class Token {
        private int length;
        private int expire;
    }

    @Data
    class Information {
        private String avatar;
        private String nickname;
        private String technology;
        private String interest;
        private String motto;
        private String game;
    }
}
